package com.wingscode.modules.app.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新增员工表单
 *
 * @author yan
 */
@Data
@ApiModel(value = "新增员工表单")
public class SaveUserForm {
    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String securityCode;

    @ApiModelProperty(value = "验证码ID")
    private String bizId;

    /**
     * 用户名
     */
    @NotBlank(message = "姓名不能为空")
    private String username;

    /**
     * 职位
     */
    private String position;
    /**
     * 是否可报价
     */
    private Integer isOfferPrice;
    /**
     * 公司id
     */
    @NotNull(message = "企业id不能为空")
    private Integer agentId;

    private Integer userId;
}
